*** Creating Table SI-2: Evaluating Covariate (Im)Balance in Pre-BAA Reform Versus Post-BAA Reform Eras: Differences in Means (t−) and Standard Deviation (F−) Tests***

***Comparing Covariate Balance Between Pre-BAA Reform and Post-BAA Reform Observations*

use data_final.dta, clear 

***using budget coherence model's sample
absdid ln1execbudcoherencetot, tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) sle 
estimate store atebct
*
absdid ln1execbudcoherencetot, tvar(bureauofbudget)  xvar(presidentialstabilityadministrat housemajoritypartystability senatemajoritypartystability ///
unifiedpartygovt sharedtenureest realgnpgrowth realfeddeficitgnp lnagencyage) yxvar(executiveagency) sle
estimate store bcti

lincomest _cons + executiveagency
estimate store bcte

***comparing covariates before and after BAA***
ttest presidentparty if e(sample), by(bureauofbudget) unequal
sdtest presidentparty if e(sample), by(bureauofbudget) 

ttest housemajorityparty if e(sample), by(bureauofbudget) unequal
sdtest housemajorityparty if e(sample), by(bureauofbudget)

ttest presidentialstabilityadministrat if e(sample), by(bureauofbudget) unequal
sdtest presidentialstabilityadministrat if e(sample), by(bureauofbudget) 

ttest housemajoritypartystability if e(sample), by(bureauofbudget) unequal
sdtest housemajoritypartystability if e(sample), by(bureauofbudget) 

ttest senatemajoritypartystability if e(sample), by(bureauofbudget) unequal
sdtest senatemajoritypartystability if e(sample), by(bureauofbudget) 


ttest unifiedpartygovt if e(sample), by(bureauofbudget) unequal
sdtest unifiedpartygovt if e(sample), by(bureauofbudget) 

ttest agencyheadstability if e(sample), by(bureauofbudget) unequal
sdtest agencyheadstability if e(sample), by(bureauofbudget)

ttest appropcommchairstabilityest if e(sample), by(bureauofbudget) unequal
sdtest appropcommchairstabilityest if e(sample), by(bureauofbudget) 

ttest sharedtenureest if e(sample), by(bureauofbudget) unequal
sdtest sharedtenureest if e(sample), by(bureauofbudget) 

ttest realgnpgrowth if e(sample), by(bureauofbudget) unequal
sdtest realgnpgrowth if e(sample), by(bureauofbudget) 

ttest realfeddeficitgnp if e(sample), by(bureauofbudget) unequal
sdtest realfeddeficitgnp if e(sample), by(bureauofbudget) 


ttest lnagencyage if e(sample), by(bureauofbudget) unequal
sdtest lnagencyage if e(sample), by(bureauofbudget) 


